
<?php

require_once("./connect.php");

//$abc=$_POST['to_save'];

$ini = parse_ini_file('config.ini', false);

mysql_select_db($ini['dbName']);
if (mysql_select_db($ini['dbName'])) {
    //$q="INSERT INTO `Adventkalender`.`save`( `saveJSON` )VALUES('$abc');";
    //$q = "select * from login where email='" . $email . "' and password='" . $pass . "';";

    $q = "Select * From fillings";

    $r = mysql_query($q);

    while ($row = mysql_fetch_array($r)) {

        $formatName = $row['icon'];

        $fillingName = $row['name'];
//echo '<img src="' . $img . '" style="cursor:pointer;" width="220" height="200" alt="' . $img . '"/>' . "\n";
        // echo $img;
        //echo "<input class='radioFilling' type='radio' name='fillingType' value='". $fillingName ."' /><b> ". $fillingName ."</b>";
        echo "<div style='float:left; padding:5px;'><div style='text-align:center'><img class='cuttings' src='" . $formatName . "' width='60' height='60' /></div><div style='text-align:center'><input class='radioFilling' type='radio' name='fillingType' value='" . $fillingName . "' /><b> " . $fillingName . "</b></div></div>";
    }
}
?>